package com.sundhage.gui {
	import flash.text.*;
	
	public class JSCheckboxSettings {
		public var generalPad:int = 5;
		public var buttonPad:int = 20;
		public var curve:int = 8;
		public var txtFormat:TextFormat;
		public var txtColor:uint = 0x000000
		public var order:String = "vert";			// eller "horiz"
		public var xmlId:String = "jscheckbox";
		
		private function parseObj(o:Object):void {
			for (var prop:* in o) {
				try {
					this[prop] = o[prop];
				} catch (e:Error) {
					trace("JSCheckboxSettings::parseObj -> property "+prop+" does not exist.");
				}
			}
		}

		public function JSCheckboxSettings(o:Object) {
			parseObj(o);
		}

	}
}